/**
 * Copyright 2020 OPSLI 快速开发平台 https://www.opsli.com
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package org.opsli.api.wrapper.website.competition;

import java.math.BigDecimal;
import java.util.Date;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.opsli.api.base.warpper.ApiWrapper;
import org.opsli.common.annotation.validator.Validator;
import org.opsli.common.annotation.validator.ValidatorLenMax;
import org.opsli.common.annotation.validator.ValidatorLenMin;
import org.opsli.common.enums.ValidatorType;
import org.opsli.plugins.excel.annotation.ExcelInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 竞赛表 Model
*
* @author cyx
* @date 2025-07-06 17:05:23
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class CompetitionModel extends ApiWrapper {

    /** 竞赛名称 */
    @Schema(description = "竞赛名称")
    @ExcelProperty(value = "竞赛名称", order = 1)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(100)
    private String name;

    /** 父级主键集合 */
    @Schema(description = "父级主键集合")
    @ExcelProperty(value = "父级主键集合", order = 2)
    @ExcelInfo
    @ValidatorLenMax(500)
    private String orgIds;

    /** 竞赛开始时间 */
    @Schema(description = "竞赛开始时间")
    @ExcelProperty(value = "竞赛开始时间", order = 3)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    private String startTime;

    /** 竞赛结束时间 */
    @Schema(description = "竞赛结束时间")
    @ExcelProperty(value = "竞赛结束时间", order = 4)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    private String endTime;

    /** 报名截止时间 */
    @Schema(description = "报名截止时间")
    @ExcelProperty(value = "报名截止时间", order = 5)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    private String signupEndTime;

    /** 竞赛链接 */
    @Schema(description = "竞赛链接")
    @ExcelProperty(value = "竞赛链接", order = 6)
    @ExcelInfo
    @ValidatorLenMax(255)
    private String link;

    /** 地点 */
    @Schema(description = "地点")
    @ExcelProperty(value = "地点", order = 7)
    @ExcelInfo
    @ValidatorLenMax(200)
    private String location;

    /** 审核状态 */
    @Schema(description = "审核状态")
    @ExcelProperty(value = "审核状态", order = 8)
    @ExcelInfo
    @Validator({
        ValidatorType.IS_NOT_NULL
    })
    @ValidatorLenMax(8)
    private String status;



}